//
// Copyright (C) [2024] Xingyun Integrated Circuit, Inc.
//
// GreenCode was a private technology asset of Xingyun Integrated Circuit， Inc （Confidential）
//  Author: Shawn.Tan
//  Date : 2025.10.28
//
//  History : Initial Version 2025.10.28
//

//
#include "Dump.h"
#include "Log.h"
#include "Scheduler.h"
#include "TopLevelResourcesGPGPU.h"

using namespace Green;
using namespace std;

int main(int argc, char* argv[])
{
  initialize_top_level_resources_GPGPU(argc, argv);

  Scheduler::Initialize();
  Scheduler* master_scheduler = Scheduler::Instance();
  master_scheduler->Run();
  Dump::Instance()->DumpInfo(false); // not partial
  Scheduler::Destroy();

  destroy_top_level_resources_GPGPU();

  return 0;
}
